package annotation.com.itheima.reflect.entry;

import com.itheima.reflect.context.ApplicationContext;
import com.itheima.reflect.context.ClasspathApplicationContext;
import com.itheima.reflect.service.OrderService;
import com.itheima.reflect.service.UserService;

public class Entry {

    public static void main(String[] args) {

        // 创建ClasspathApplicationContext对象
        ApplicationContext applicationContext = new ClasspathApplicationContext("applicationContext.xml") ;

        // 从applicationContext对象获取OrderService对象，并进行使用
        OrderService orderService = applicationContext.getBean(OrderService.class);
        orderService.find();

    }

}
